<template>
  <div>
    <HeaderView />
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <!-- <a class="list-group-item" href="./about.html">About</a>
          <a class="list-group-item active" href="./home.html">Home</a> -->
          <router-link replace class="list-group-item" active-class="active" to="/count">
            count
          </router-link>
          <router-link class="list-group-item" active-class="active" to="/usevuex1">
            UseVuex1
          </router-link>
          <router-link class="list-group-item" active-class="active" to="/usevuex2">
            UseVuex2
          </router-link>
          <router-link class="list-group-item" active-class="active" to="/person">
            PersonView
          </router-link>
          <router-link class="list-group-item" active-class="active" to="/about">
            About
          </router-link>
          <router-link class="list-group-item" active-class="active" to="/home">
            Home
          </router-link>
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!-- 此处展示内容 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import HeaderView from './components/Header.vue'
export default {
  name: 'App',
  components: {HeaderView}
}
</script>

<style lang="less">
  h1 {
    text-align: center;
  }
</style>